package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysGeneralWordCategoryMapper;
import com.ruoyi.system.domain.SysGeneralWordCategory;
import com.ruoyi.system.service.ISysGeneralWordCategoryService;

/**
 * 普通词分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-19
 */
@Service
public class SysGeneralWordCategoryServiceImpl implements ISysGeneralWordCategoryService 
{
    @Autowired
    private SysGeneralWordCategoryMapper sysGeneralWordCategoryMapper;

    /**
     * 查询普通词分类
     * 
     * @param id 普通词分类主键
     * @return 普通词分类
     */
    @Override
    public SysGeneralWordCategory selectSysGeneralWordCategoryById(Long id)
    {
        return sysGeneralWordCategoryMapper.selectSysGeneralWordCategoryById(id);
    }

    /**
     * 查询普通词分类列表
     * 
     * @param sysGeneralWordCategory 普通词分类
     * @return 普通词分类
     */
    @Override
    public List<SysGeneralWordCategory> selectSysGeneralWordCategoryList(SysGeneralWordCategory sysGeneralWordCategory)
    {
        return sysGeneralWordCategoryMapper.selectSysGeneralWordCategoryList(sysGeneralWordCategory);
    }

    /**
     * 新增普通词分类
     * 
     * @param sysGeneralWordCategory 普通词分类
     * @return 结果
     */
    @Override
    public int insertSysGeneralWordCategory(SysGeneralWordCategory sysGeneralWordCategory)
    {
        return sysGeneralWordCategoryMapper.insertSysGeneralWordCategory(sysGeneralWordCategory);
    }

    /**
     * 修改普通词分类
     * 
     * @param sysGeneralWordCategory 普通词分类
     * @return 结果
     */
    @Override
    public int updateSysGeneralWordCategory(SysGeneralWordCategory sysGeneralWordCategory)
    {
        return sysGeneralWordCategoryMapper.updateSysGeneralWordCategory(sysGeneralWordCategory);
    }

    /**
     * 批量删除普通词分类
     * 
     * @param ids 需要删除的普通词分类主键
     * @return 结果
     */
    @Override
    public int deleteSysGeneralWordCategoryByIds(Long[] ids)
    {
        return sysGeneralWordCategoryMapper.deleteSysGeneralWordCategoryByIds(ids);
    }

    /**
     * 删除普通词分类信息
     * 
     * @param id 普通词分类主键
     * @return 结果
     */
    @Override
    public int deleteSysGeneralWordCategoryById(Long id)
    {
        return sysGeneralWordCategoryMapper.deleteSysGeneralWordCategoryById(id);
    }
}
